From: Johan Sandgren 
Message-Id: <199604080754.JAA23908@marvin.df.lth.se>
To: mui@sunsite.Informatik.RWTH-Aachen.DE
Subject: Drag'n drop problems...
Resent-Message-Id: <"tYXE52.0.VD1.PPCQn"@sunsite>
Resent-From: mui@sunsite.Informatik.RWTH-Aachen.DE
Reply-To: mui@sunsite.Informatik.RWTH-Aachen.DE
X-Mailing-List:  archive/latest/965
X-Loop: mui@sunsite.informatik.rwth-aachen.de
Precedence: list
Resent-Sender: mui-request@sunsite.Informatik.RWTH-Aachen.DE
Content-Type: text
Content-Length: 702
X-Lines: 33
Status: RO




Hello!

I have some problems with drag'n drop. I used the d&d demo-example of MUI3.3
which creates two custom-classes (listviews).

In this example it's only possible to drag 1 object in-between. I modified
the classcode function FieldsList_DragDrop()

to use

  DoMethod(msg->obj, MUIM_List_NextSelected, &id);

to get next id-no from source.


THE THING IS that the 2 first entries in the source-listview is NOT possible to drag.
I get MUIV_NextSelected_END with the top two entries selected.

If I pick no 3 - 6, all 4 is selected and draggable.



Regards,

Johan


/\/\_/\-/\  sandis@df.lth.se - A3000 CyberVision 64  /\/\-/\_/\
\/\/ \/-\/  Amiga Programmer - AmigaOS3.1 AFSPro MUI \/\/-\/ \/


From: m.jantz@public.ndh.com (Marcel Jantz)
To: mui@sunsite.Informatik.RWTH-Aachen.DE
Subject: Re: Drag'n drop problems...
In-Reply-To: <199604080754.JAA23908@marvin.df.lth.se>
Message-Id: <1007.6673T756T1224@public.ndh.com>
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
Lines: 42
Resent-Message-Id: <"vK3vo3.0.1m6.R_aQn"@sunsite>
Resent-From: mui@sunsite.Informatik.RWTH-Aachen.DE
Reply-To: mui@sunsite.Informatik.RWTH-Aachen.DE
X-Mailing-List:  archive/latest/977
X-Loop: mui@sunsite.informatik.rwth-aachen.de
Precedence: list
Resent-Sender: mui-request@sunsite.Informatik.RWTH-Aachen.DE
X-Lines: 43
Status: RO
Content-Type: text/plain; charset="us-ascii"
Content-Length: 1008

>Hello!

>I have some problems with drag'n drop. I used the d&d demo-example of MUI3.3
>which creates two custom-classes (listviews).

>In this example it's only possible to drag 1 object in-between. I modified
>the classcode function FieldsList_DragDrop()

>to use

>  DoMethod(msg->obj, MUIM_List_NextSelected, &id);

>to get next id-no from source.


>THE THING IS that the 2 first entries in the source-listview is NOT possible
>to drag. I get MUIV_NextSelected_END with the top two entries selected.

>If I pick no 3 - 6, all 4 is selected and draggable.

Well, you have to initialize id to MUIV_NextSelected_START (I guess) and the
step through the hole list. It worked for me.

>Regards,

>Johan